// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide.navigationToolbar

import com.intellij.ide.ui.UISettingsListener
import com.intellij.util.ui.JBSwingUtilities
import java.awt.Graphics
import java.awt.LayoutManager
import javax.swing.JPanel

@Deprecated(message = "Moved to `com.intellij.platform.navbar.frontend.NavBarRootPaneExtension`", level = DeprecationLevel.ERROR)
class NavBarRootPaneExtension {

  // used externally
  @Deprecated(message = "Use `JPanel` instead", level = DeprecationLevel.ERROR)
  abstract class NavBarWrapperPanel(layout: LayoutManager?) : JPanel(layout), UISettingsListener {
    override fun getComponentGraphics(graphics: Graphics): Graphics {
      return JBSwingUtilities.runGlobalCGTransform(this, super.getComponentGraphics(graphics))
    }
  }
}
